package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Jbqk;
import com.corpcredit.service.GenericManager;

public class JbqkList extends BasePage implements Serializable {
    private GenericManager<Jbqk, Long> jbqkManager;

    public void setJbqkManager(GenericManager<Jbqk, Long> jbqkManager) {
        this.jbqkManager = jbqkManager;
    }

    public JbqkList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getJbqks() {
        return sort(jbqkManager.getAll());
    }
}

